package com.woniu.service.Impl.homePage;

import com.woniu.dao.homePage.OrderDao;
import com.woniu.dao.homePage.OrdersDetailsTwoDao;
import com.woniu.entity.Orders;
import com.woniu.service.homePage.IOrdersTwoService;
import com.woniu.util.ResData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 周权
 * @data 2023/3/14 9:06
 */
@Service
public class OrdersTwoService implements IOrdersTwoService {

    @Autowired
    OrderDao ordersTwoDao;

    @Override
    public ResData<?> updateOrders(Orders orders) {
        ordersTwoDao.updateOrders(orders);
        return new ResData<>().ok();
    }

    @Override
    public ResData<?> deleteOrdersById(String id) {
        ordersTwoDao.deleteOrdersById(id);
        return new ResData<>().ok();
    }
}
